apiVersion: v1
kind: Service
metadata:
  labels:
    app: {{ .Values.app_name }}
  name: {{ .Values.app_name }}
spec:
  ports:
  - port: {{ .Values.port}}
    protocol: TCP
    targetPort: {{ .Values.port}}
  selector:
    app: {{ .Values.app_name }}
  type: ClusterIP